-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: wire up cron again #3452
fix: wire up cron again #3452
Conversation
586e571
to
9302944
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM except for using the provisioner for routing calls.
cmd/ftl-cron/main.go
Outdated
err = observability.Init(ctx, false, "", "ftl-cron", ftl.Version, cli.ObservabilityConfig) | ||
kctx.FatalIfErrorf(err, "failed to initialize observability") | ||
|
||
verbClient := rpc.Dial(ftlv1connect.NewVerbServiceClient, cli.ProvisionerConfig.ControllerEndpoint.String(), log.Error) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Verb calls shouldn't be routing through the Provisioner...?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops, that was a copy/paste error I should have picked up.
cmd/ftl-cron/main.go
Outdated
Version kong.VersionFlag `help:"Show version."` | ||
ObservabilityConfig observability.Config `embed:"" prefix:"o11y-"` | ||
LogConfig log.Config `embed:"" prefix:"log-"` | ||
ProvisionerConfig provisioner.Config `embed:""` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Verb calls should be routing through the Controller.
9302944
to
4abd074
Compare
Version kong.VersionFlag `help:"Show version."` | ||
ObservabilityConfig observability.Config `embed:"" prefix:"o11y-"` | ||
LogConfig log.Config `embed:"" prefix:"log-"` | ||
CronConfig cron.Config `embed:""` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general we should prefix all embedded configs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is not the pattern we have been using for the 'main' config though. Cron, Runner, Provisioner, Controller etc all have one 'main' config that is not prefixed.
No description provided.